package com.ruoyi.pk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.pk.mapper.PkEjInstructionMapper;
import com.ruoyi.pk.domain.PkEjInstruction;
import com.ruoyi.pk.service.IPkEjInstructionService;

/**
 * 二九指导书Service业务层处理
 * 
 * @author wang
 * @date 2021-09-13
 */
@Service
public class PkEjInstructionServiceImpl implements IPkEjInstructionService 
{
    @Autowired
    private PkEjInstructionMapper pkEjInstructionMapper;

    /**
     * 查询二九指导书
     * 
     * @param id 二九指导书主键
     * @return 二九指导书
     */
    @Override
    public PkEjInstruction selectPkEjInstructionById(Long id)
    {
        return pkEjInstructionMapper.selectPkEjInstructionById(id);
    }

    /**
     * 查询二九指导书列表
     * 
     * @param pkEjInstruction 二九指导书
     * @return 二九指导书
     */
    @Override
    public List<PkEjInstruction> selectPkEjInstructionList(PkEjInstruction pkEjInstruction)
    {
        return pkEjInstructionMapper.selectPkEjInstructionList(pkEjInstruction);
    }

    /**
     * 新增二九指导书
     * 
     * @param pkEjInstruction 二九指导书
     * @return 结果
     */
    @Override
    public int insertPkEjInstruction(PkEjInstruction pkEjInstruction)
    {
        return pkEjInstructionMapper.insertPkEjInstruction(pkEjInstruction);
    }

    /**
     * 修改二九指导书
     * 
     * @param pkEjInstruction 二九指导书
     * @return 结果
     */
    @Override
    public int updatePkEjInstruction(PkEjInstruction pkEjInstruction)
    {
        return pkEjInstructionMapper.updatePkEjInstruction(pkEjInstruction);
    }

    /**
     * 批量删除二九指导书
     * 
     * @param ids 需要删除的二九指导书主键
     * @return 结果
     */
    @Override
    public int deletePkEjInstructionByIds(Long[] ids)
    {
        return pkEjInstructionMapper.deletePkEjInstructionByIds(ids);
    }

    /**
     * 删除二九指导书信息
     * 
     * @param id 二九指导书主键
     * @return 结果
     */
    @Override
    public int deletePkEjInstructionById(Long id)
    {
        return pkEjInstructionMapper.deletePkEjInstructionById(id);
    }
}
